package cn.kgm.log.config;

import cn.kgm.admin.api.RemoteLogService;
import feign.Feign;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.cloud.openfeign.FeignAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Version 1.8
 * @Author: Kappi
 * @Date: 2024-3-14 17:42
 * @Description: cn.kgm.log.config.RemoteServiceClientAutoConfiguration
 */
@Deprecated
@Configuration
@AutoConfigureAfter(FeignAutoConfiguration.class)
public class RemoteServiceClientAutoConfiguration {

    @Bean
    @ConditionalOnMissingBean
    public RemoteLogService remoteServiceClient() {
        return Feign.builder().target(RemoteLogService.class, "");
    }
}
